﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Manager.aspx.cs" Inherits="Manager" %>

<%@ Register src="control/ManageControl.ascx" tagname="ManageControl" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>文件管理</title>
    <link href="Css/manage.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <img src="Image/top.jpg" alt="" />
    </div>
     <uc1:ManageControl ID="ManageControl2" runat="server" />
     <div id="labpath">
         您的位置是:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Labpath" runat="server" ></asp:Label>
     </div>
     <div id="imagebutton">
        <p>
        
         <asp:ImageButton ID="Ibhome" runat="server"  ImageUrl ="~/Image/home.gif"    onclick="Ibhome_Click" CssClass="home" />
              
         <asp:ImageButton ID="Ibnew" runat="server" ImageUrl ="~/Image/new_folder.gif" onclick="Ibnew_Click" CssClass="newfile" />
            <asp:ImageButton ID="lbupload" runat="server" ImageUrl ="~/Image/upload.gif"  
                CssClass ="upload" onclick="lbupload_Click" /> 
        
           
           </p> 
           <p>
          <a class ="home">根目录</a> <a class="newfile1">新建文件夹</a>   <a class ="upload1">上传文件</a> &nbsp; &nbsp; &nbsp; &nbsp;   注:点击文件名就能下载上传文件
           </p>  
     
     </div>
     
   <table class="table">

  <tr id="hang">
    <td id="ls">类型</td>
    <td id="mc">名称</td>
    <td id="dx">大小</td>
    <td id="sj">修改时间</td>
    <td id="cz">操作</td>
  </tr>
</table>

    
     
     
    <div id="gridview">
        <asp:GridView ID="Griddir" runat="server" AutoGenerateColumns="False" 
             BorderWidth="0" GridLines="None"  >
            
            <Columns>
                <asp:TemplateField   ItemStyle-Width ="100px">
                    <ItemTemplate >
                        <asp:Label ID="Label1" runat="server" Text ="文件夹" ></asp:Label>
                    </ItemTemplate>
                     <ItemStyle Width="100px"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField  ItemStyle-Width ="500px">
                    <ItemTemplate>
                   <a href ='Manager.aspx?p= <%#Eval("Di_parentid") %>&dd=<%#Eval("Di_dirname") %>&q="pp" '><%#Eval("Di_dirname") %></a>
                    </ItemTemplate>
                  <ItemStyle Width="500px"></ItemStyle>
                </asp:TemplateField>
                        <asp:TemplateField  ItemStyle-Width ="200px" >
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ItemStyle-Width ="200px" >
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text ='<%#Eval("Di_createtime") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField   ItemStyle-Width ="250px">
                    <ItemTemplate>
                     <p >
                  <asp:LinkButton ID="lbtndeldir" OnClientClick="return confirm('是否要真的删除？')" onclick="lbtndeldir_Click" CommandArgument='<%# Eval("Di_idno") +","+Eval("Di_dirname")%>' runat="server" >删除</asp:LinkButton>
            　 <asp:LinkButton ID="lbtncmmdir" onclick="lbtncmmdir_Click" CommandArgument='<%# Eval("Di_idno") +","+Eval("Di_dirname") 
                        %>' runat="server" >重命名</asp:LinkButton>
            　 
            　 </p>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
       
      
      
      
        <asp:GridView ID="Gridfile" runat="server" AutoGenerateColumns="False" 
             BorderWidth="0" GridLines="None"    >
            <Columns>
                <asp:TemplateField   ItemStyle-Width ="100px">
                    <ItemTemplate >
                        <asp:Label ID="Labe4" runat="server" Text ='<%#Eval("Fi_fileext") %>'></asp:Label>
                    </ItemTemplate>
                     <ItemStyle Width="100px"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField  ItemStyle-Width ="500px">
                    <ItemTemplate>

                        <asp:LinkButton ID="Lbdown" runat="server" OnClick ="down_Click" CommandArgument='<%# Eval("Fi_filename")+","+Eval("Fi_fileext") %>'><%#Eval("Fi_filename") %></asp:LinkButton>
                    </ItemTemplate>
                  <ItemStyle Width="500px"></ItemStyle>
                </asp:TemplateField>
                        <asp:TemplateField  ItemStyle-Width ="200px" >
                    <ItemTemplate>
                        <asp:Label ID="Label6" runat="server" Text ='<%#Eval("Fi_filesize" )+"byte"%>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ItemStyle-Width ="200px" >
                    <ItemTemplate>
                        <asp:Label ID="Label7" runat="server" Text ='<%#Eval("Fi_lasttime") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField   ItemStyle-Width ="250px">
                    <ItemTemplate>
                    <p>
                        <asp:LinkButton ID="lbtndelfile" OnClientClick="return confirm('是否要真的删除？')" onclick="lbtndelfile_Click" CommandArgument='<%# Eval("Fi_idno") +","+Eval("Fi_filename") +","+Eval("Fi_fileext")
                        %>' runat="server" >删除</asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                      <asp:LinkButton ID="lbtncmmfile" onclick="lbtncmmfile_Click" CommandArgument='<%# Eval("Fi_idno") +","+Eval("Fi_filename") +","+Eval("Fi_fileext")
                        %>' runat="server" >重命名</asp:LinkButton>
                    </p>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>  
    </div>
    
   
    
    </form>
</body>
</html>
